package com.cloud.api.system.fallBack;

import com.cloud.api.system.SystemTestFeign;
import com.cloud.common.core.model.response.SuccessResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 用户服务降级处理
 *
 * @author yan
 */
@Slf4j
@Component
public class SystemTestFeignFallback implements SystemTestFeign {

    @Override
    public SuccessResponses<String> sysLoad() {
        System.out.println("降级");
        return new SuccessResponses<>(200, "调用异常");
    }
}
